QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    appconfig.cpp \
    ledboard.cpp \
    main.cpp \
    mainwidget.cpp \
    mlabel.cpp \
    slabel.cpp

HEADERS += \
    appconfig.h \
    ledboard.h \
    mainwidget.h \
    mlabel.h \
    slabel.h \
    typedefs.h

FORMS += \
    mainwidget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

win32:CONFIG(release, debug|release): LIBS += -LC:/Opencv/build/x64/vc15/lib/ -lopencv_world460
else:win32:CONFIG(debug, debug|release): LIBS += -LC:/Opencv/build/x64/vc15/lib/ -lopencv_world460d

INCLUDEPATH += C:/Opencv/build/include
DEPENDPATH += C:/Opencv/build/include

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += C:/Opencv/build/x64/vc15/lib/libopencv_world460.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += C:/Opencv/build/x64/vc15/lib/libopencv_world460d.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += C:/Opencv/build/x64/vc15/lib/opencv_world460.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += C:/Opencv/build/x64/vc15/lib/opencv_world460d.lib

#DESTDIR = $$PWD/../bin

#DESTDIR:指定在何处放置目标文件(即程序最后生成的可执行文件，这个最重要)。
#CONFIG(release):DESTDIR = $$PWD/../bin
#CONFIG(debug, debug|release):DESTDIR = $$PWD/../bin
DESTDIR = $$PWD/tmp/Bin

#MOC_DIR:指定来自moc的所有中间文件放置的目录（含Q_OBJECT宏的头文件转换成标准.h文件的存放目录）
MOC_DIR = $$PWD/tmp/Compile/moc

#OBJECTS_DIR:指定所有中间文件.o（.obj）放置的目录。
OBJECTS_DIR = $$PWD/tmp/Compile/obj

#RCC_DIR:指定Qt资源编译器输出文件的目录（.qrc文件转换成qrc_*.h文件的存放目录）。
RCC_DIR = $$PWD/tmp/Compile/rcc

#UI_DIR：指定来自uic的所有中间文件放置的目录（.ui文件转化成ui_*.h文件的存放目录）。
#unix:UI_DIR = ../myproject/ui
#win32:UI_DIR = c:/myproject/ui
UI_DIR = $$PWD/tmp/Compile/ui

RESOURCES += \
    res.qrc
